//
//  BigCollectionViewCell.m
//  HandWork
//
//  Created by 王阳阳 on 16/1/21.
//  Copyright © 2016年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "BigCollectionViewCell.h"
#import "GiftModel.h"
@implementation BigCollectionViewCell
-(void)dealloc
{
    [_bgimg release];
    [_titleLabel release];
    [super dealloc];
}
#pragma mark - 初始化
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self creat];
    }
    return self;
}
#pragma mark - 创建
- (void)creat
{
    //图片
    self.bgimg = [[UIImageView alloc]init];
    [self.contentView addSubview:self.bgimg];
    [_bgimg release];
    //标题
    self.titleLabel = [[UILabel alloc]init];
    [self.contentView addSubview:self.titleLabel];
    [_titleLabel release];
}
#pragma mark - 布局
- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    [super applyLayoutAttributes:layoutAttributes];
    self.bgimg.frame = self.contentView.frame;
 
    self.titleLabel.frame = CGRectMake(5, 170, self.contentView.frame.size.width - 10, 30);
   
}
//- (void)setSanModel:(GiftModel *)sanModel
//{
//    if (_gifmodel != sanModel)
//    {
//        [_gifmodel release];
//        _gifmodel = [sanModel retain];
//    }
// 
//}
@end
